package com.suotuo.module.sys.controller;

import com.suotuo.common.util.Result;
import com.suotuo.module.sys.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author liulubingjava@163.com
 * @date 2019/1/23 16:07
 */
@RestController
@RequestMapping("log")
public class LogController {
    @Autowired
    private LogService logService;

    @GetMapping("/list")
    public Result list(){
        return Result.success(logService.list());
    }
    @DeleteMapping(value = "/delete")
    public Result delete(@RequestParam Integer id){
        logService.delete(id);
        return Result.success("delete success");
    }

}
